package net.begincode.biz;

import net.begincode.bean.UserBaseInfo;
import net.begincode.blog.bean.param.UserQueryParam;
import net.begincode.blog.entity.User;
import net.begincode.page.PageResponse;

import java.util.List;

public interface UserBiz {
    /**
     * 用户密码检查
     */
    User checkUser(String email, String pwd);

    /**
     * 查询用户
     * */
    PageResponse<User> query(UserQueryParam userQueryParam);

    /**
     * 审核用户
     * */
    Boolean updateUserFlag(Long userId, String flag);

    /***
     * 查询活跃用户
     * @param limit
     * @return
     */
    List<UserBaseInfo> queryActiveUser(int limit);
}
